package fr.umlv.m2.jee.portailEtudiant.persistence.DAO;

import fr.umlv.m2.jee.portailEtudiant.framework.dao.hibernate.AbstractHibernateDAO;
import fr.umlv.m2.jee.portailEtudiant.persistence.ITutorialDAO;
import fr.umlv.m2.jee.portailEtudiant.persistence.Tutorial;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 10/02/11
 * Time: 18:52
 * To change this template use File | Settings | File Templates.
 */
@Repository("hibernateTutorialDAO")
public class HibernateTutorialDAO extends AbstractHibernateDAO<Long, Tutorial> implements ITutorialDAO {


    public List<Tutorial> findByTutorialsId(long id) {
            return super.findByQuery("FROM Tutorial b WHERE b.id ='"+id+"'");
    }
}
